package com.yanqu.road.entity.activity.rankunionwar.data;

import com.yanqu.road.entity.DataObject;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class CrossRankUnionWarData extends DataObject {

    private int activityId;

    //当前达到第几轮了
    private int gameTurn;

    //拉取对应个数的商会来参加比赛
    private boolean isUnionGet = false;

    //每一轮都有谁打，轮次，战区id
    private Map<Integer, Map<Integer, List<String>>> battleUnionIdMap = new ConcurrentHashMap<>();

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public boolean isUnionGet() {
        return isUnionGet;
    }

    public void setUnionGet(boolean unionGet) {
        if(unionGet != this.isUnionGet){
            isUnionGet = unionGet;
            setUpdateOption();
        }
    }

    public Map<Integer, Map<Integer, List<String>>> getBattleUnionIdMap() {
        return battleUnionIdMap;
    }

    public void setBattleUnionIdMap(Map<Integer, Map<Integer, List<String>>> battleUnionIdMap) {
        this.battleUnionIdMap = battleUnionIdMap;
        setUpdateOption();
    }

    public int getGameTurn() {
        return gameTurn;
    }

    public void setGameTurn(int gameTurn) {
        if(gameTurn != this.gameTurn){
            this.gameTurn = gameTurn;
            setUpdateOption();
        }
    }
}
